#ifndef __MOTOR_H
#define __MOTOR_H
#include "stm32f1xx_hal.h"
#include "stdlib.h"
void SetMoto1(uint32_t value1, uint32_t value2);
void SetMoto2(uint32_t value3, uint32_t value4);
int Read_Encoder(uint8_t TIMX);
void Xianfu_Pwm(void);
int Set_Pwm(int moto1, int moto2);
uint8_t Turn_Off(float angle);

extern int Moto1, Moto2;
#endif